﻿namespace PatternLib.Responsibility
{
    public class CEO : ResponsibilityChain
    {
        public CEO()
        {
            this.Name = "CEOOO";
        }
        public override void Execute(ResponsibilityNode applyContext)
        {
            Console.WriteLine($"this is {GetType().Name} {Name} 来审核");
            if (applyContext.Hour > 40)
            {
                applyContext.AuditResult = true;
            }
            else
            {
                NextStep(applyContext);
            }
        }
    }
}
